<!DOCTYPE html>
    <html lang="en">

    <head>
        <meta charset="utf-8" />
        <title>艾客网络后台首页</title>
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <meta content="A fully featured admin theme which can be used to build CRM, CMS, etc." name="description" />
        <meta content="Coderthemes" name="author" />
        <!-- App favicon -->
        <link rel="shortcut icon" href="/public/assets/images/favicon.ico">

       <link href="/public/assets/css/vendor/jquery-jvectormap-1.2.2.css" rel="stylesheet" type="text/css" />
        <!-- third party css end -->

        <!-- App css -->
        <link href="/public/assets/css/icons.min.css" rel="stylesheet" type="text/css" />
        <link href="/public/assets/css/app.min.css" rel="stylesheet" type="text/css" />
           <style>::-webkit-scrollbar{display:none;}</style>
    </head>

    <body>

        <!-- Begin page -->
        <div class="wrapper">

            <!-- ========== Left Sidebar Start ========== -->
        
   {include file="public/left" /}
            <!-- ============================================================== -->
            <!-- Start Page Content here -->
            <!-- ============================================================== -->

            <div class="content-page">
                <div class="content">

              {include file="public/top" /}
                    
                    <!-- Start Content-->
                    <div class="container-fluid">

                        <!-- start page title -->
                        <div class="row">
                            <div class="col-12">
                                <div class="page-title-box">
                                    <div class="page-title-right">
                                        <form class="form-inline">
                                            <div class="form-group">
                                                <div class="input-group">
                                                    <input type="text" class="form-control form-control-light" id="dash-daterange">
                                                    <div class="input-group-append">
                                                        <span class="input-group-text bg-primary border-primary text-white">
                                                            <i class="mdi mdi-calendar-range font-13"></i>
                                                        </span>
                                                    </div>
                                                </div>
                                            </div>
                                            <a href="javascript: void(0);" class="btn btn-primary ml-2">
                                                <i class="mdi mdi-autorenew"></i>
                                            </a>
                                            <a href="javascript: void(0);" class="btn btn-primary ml-1">
                                                <i class="mdi mdi-filter-variant"></i>
                                            </a>
                                        </form>
                                    </div>
                                    <h4 class="page-title">仪表盘</h4>
                                </div>
                            </div>
                        </div>
                        <!-- end page title -->
 <div class="row">
   本系统由<a href="http://xaike.xyz">艾客网络</a>开发，如需二次开发或多群系统，请联系站长。qq：2404503092
     </div>
                        <div class="row">
                            <div class="col-xl-5" style="width:100%;flex: 0 0 100%;max-width: 100%;">

                                <div class="row">
                                    <div class="col-lg-6">
                                        <div class="card widget-flat">
                                            <div class="card-body">
                                                <div class="float-right">
                                                    <i class="mdi mdi-account-multiple widget-icon"></i>
                                                </div>
                                                <h5 class="text-muted font-weight-normal mt-0" title="Number of Customers">平台总用户</h5>
                                                <h3 class="mt-3 mb-3">{$yonghushu}</h3>
                                                <p class="mb-0 text-muted">
                                                 
                                                    <span class="text-nowrap">今日新增用户：{$jinriyonghushu}</span>  
                                                </p>
                                            </div> <!-- end card-body-->
                                        </div> <!-- end card-->
                                    </div> <!-- end col-->

                                    <div class="col-lg-6">
                                        <div class="card widget-flat">
                                            <div class="card-body">
                                                <div class="float-right">
                                                    <i class="mdi mdi-cart-plus widget-icon"></i>
                                                </div>
                                                <h5 class="text-muted font-weight-normal mt-0" title="Number of Orders">订单总数</h5>
                                                <h3 class="mt-3 mb-3">{$dingdanshu}</h3>
                                                <p class="mb-0 text-muted">
                                                
                                                    <span class="text-nowrap">今日订单数：{$jinridingdanshu}</span>
                                                </p>
                                            </div> <!-- end card-body-->
                                        </div> <!-- end card-->
                                    </div> <!-- end col-->
                                </div> <!-- end row -->

                                <div class="row">
                                    <div class="col-lg-6">
                                        <div class="card widget-flat">
                                            <div class="card-body">
                                                <div class="float-right">
                                                    <i class="mdi mdi-currency-usd widget-icon"></i>
                                                </div>
                                                <h5 class="text-muted font-weight-normal mt-0" title="Average Revenue">订单金额</h5>
                                                <h3 class="mt-3 mb-3">{$zongshouru}</h3>
                                                <p class="mb-0 text-muted">
                                                 
                                                    <span class="text-nowrap">今日总收入：{$jinrizongshouru}</span>
                                                </p>
                                            </div> <!-- end card-body-->
                                        </div> <!-- end card-->
                                    </div> <!-- end col-->

                                    <div class="col-lg-6">
                                        <div class="card widget-flat">
                                            <div class="card-body">
                                                <div class="float-right">
                                                    <i class="mdi mdi-pulse widget-icon"></i>
                                                </div>
                                                <h5 class="text-muted font-weight-normal mt-0" title="Growth">代理数量</h5>
                                                <h3 class="mt-3 mb-3">{$dailishu}</h3>
                                                <p class="mb-0 text-muted">
                                                   
                                                    <span class="text-nowrap">今日新增代理：{$jinridaili}</span>
                                                </p>
                                            </div> <!-- end card-body-->
                                        </div> <!-- end card-->
                                    </div> <!-- end col-->
                                </div> <!-- end row -->

                            </div> <!-- end col -->

                          
                        </div>
                        <!-- end row -->

                        <div class="row">
                            <div class="col-xl-8" style="width:100%;flex: 0 0 100%;max-width: 100%;">
                                <div class="card" style="width:100%">
                                <div id="mountNode" style="width:100%"></div>
                                </div> <!-- end card-->
                            </div> <!-- end col-->

                         
                        </div>
                        <!-- end row -->


                       

                    </div>
                    <!-- container -->

                </div>
                <!-- content -->

             {include file="public/foot" /}

            </div>

            <!-- ============================================================== -->
            <!-- End Page content -->
            <!-- ============================================================== -->


        </div>
        <!-- END wrapper -->

        <!-- Right Sidebar -->
     

       

   
<script>/*Fixing iframe window.innerHeight 0 issue in Safari*/document.body.clientHeight;</script>
        <!-- /Right-bar -->
  
<script src="https://gw.alipayobjects.com/os/antv/pkg/_antv.g2-3.5.1/dist/g2.min.js"></script>
<script src="https://gw.alipayobjects.com/os/antv/pkg/_antv.data-set-0.10.1/dist/data-set.min.js"></script>
<script>
  // 在一行中保存多个城市的数据，需要将数据转换成
  // {month: 'Jan', city: 'Tokyo', temperature: 3.9}
  var data = [{
    month: '六天前',
    用户: {$yonghu6},
    订单: {$dingdan6}
  }, {
    month: '五天前',
    用户: {$yonghu5},
    订单: {$dingdan5}
  }, {
    month: '四天前',
    用户: {$yonghu4},
    订单: {$dingdan4}
  }, {
    month: '三天前',
    用户: {$yonghu3},
    订单: {$dingdan3}
  }, {
    month: '两天前',
    用户: {$yonghu2},
    订单: {$dingdan2}
  }, {
    month: '昨天',
    用户: {$yonghu1},
    订单: {$dingdan1}
  }, {
    month: '今天',
    用户: {$jinriyonghushu},
    订单: {$jinridingdanshu}
  }];
  var ds = new DataSet();
  var dv = ds.createView().source(data);
  // fold 方式完成了行列转换，如果不想使用 DataSet 直接手工转换数据即可
  dv.transform({
    type: 'fold',
    fields: ['用户', '订单'], // 展开字段集
    key: 'city', // key字段
    value: 'temperature' // value字段
  });
  var chart = new G2.Chart({
    container: 'mountNode',
    forceFit: true,
    height: window.innerHeight
  });
  chart.source(dv, {
    month: {
      range: [0, 1]
    }
  });
  chart.tooltip({
    crosshairs: {
      type: 'line'
    }
  });
  chart.axis('temperature', {
    label: {
      formatter: function formatter(val) {
        return val + '个';
      }
    }
  });
  chart.line().position('month*temperature').color('city').shape('smooth');
  chart.point().position('month*temperature').color('city').size(4).shape('circle').style({
    stroke: '#fff',
    lineWidth: 1
  });
  chart.render();
</script>
        <!-- bundle -->
        <script src="/public/assets/js/app.min.js"></script>
<script src="https://cdn.bootcdn.net/ajax/libs/Chart.js/3.9.1/chart.esm.js"></script>
        <!-- third party js -->
        <script src="https://cdn.bootcss.com/Chart.js/2.7.3/Chart.bundle.min.js"></script>
        <script src="/public/assets/js/vendor/jquery-jvectormap-1.2.2.min.js"></script>
        <script src="/public/assets/js/vendor/jquery-jvectormap-world-mill-en.js"></script>
        <!-- third party js ends -->

        <!-- demo app -->
        <script src="/public/assets/js/pages/demo.dashboard.js"></script>
        <!-- end demo js-->
    </body>

</html>